using System;
using Geometry;
using FIRADriverLibrary;

namespace PotentialFieldDriver
{
	/// <summary>
	/// 
	/// </summary>
	public class RobotController
	{
		public FIRARobotState robotState;

		public Point2D startupPosition;

		public bool main;


		public RobotController(FIRARobotState robotState)
		{
			this.robotState = robotState;
		}

		public void Stop()
		{
			robotState.leftSpeed = 0.0;
			robotState.rightSpeed = 0.0;
		}

		public Point2D Position
		{
			get { return new Point2D(robotState.x, robotState.y); }
		}

		public Vector2D VelocityVersor
		{
			get { return new Vector2D(robotState.angle); }
		}

			
	}
}
